package com.woniuxy.aspect;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;

public class MyAspect {
    public void check(){
        System.out.println("检查权限");
    }
    public void log(){
        System.out.println("记录日志");
    }
    public void release(){
        System.out.println("释放资源");
    }
    public void round(ProceedingJoinPoint jp){
        try {
            System.out.println("检查权限++++");
            jp.proceed();
            System.out.println("记录日志++++");
        } catch (Throwable throwable) {
            throwable.printStackTrace();
        }

    }
}
